Skip to content

Add approvals, approve & unapprove API's #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2017
Merged

Add approvals, approve & unapprove API's #201

merged 1 commit into from
Jul 17, 2017

Conversation

20uf
Copy link
Contributor

@20uf 20uf commented Jul 10, 2017

@m1guelpf m1guelpf merged commit a1435f4 into GitLabPHP:master Jul 17, 2017
@20uf 20uf deleted the feat/add-approvals branch July 17, 2017 11:01
Copy link
Contributor

@fbourigault fbourigault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR. This is fine to me except a few things. Could you update your PR?

EDIT: I started a review and it get merged by @m1guelpf. Could you open a new PR, to fix my comments?

EDIT2: See #203

*
* @return mixed
*/
public function unApprove($project_id, $mr_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use unapprove here please. Also use $merge_request_iid.

*
* @return mixed
*/
public function approvals($project_id, $mr_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use $merge_request_iid here instead of $mr_id? Full names are better than abbreviations and iid as it carry some information to the API user.

*
* @return mixed
*/
public function approve($project_id, $mr_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for $mr_id.

@m1guelpf
Copy link
Member

@fbourigault See #203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants